The stateID attribute - 255 states plus Error identifies the state whose attributes are defined in the state element. The stateId attribute is the first attribute in the state element.
The multistateButton graphic object element contains this attribute.
FactoryTalk View equivalent: State